this.BX=this.BX||{};this.BX.Landing=this.BX.Landing||{};this.BX.Landing.UI=this.BX.Landing.UI||{};(function(e,a,n,i,t){"use strict";var r="/bitrix/js/landing/ui/panel/separatorpanel/dist/images/solid.png";var s="/bitrix/js/landing/ui/panel/separatorpanel/dist/images/header.png";var l="/bitrix/js/landing/ui/panel/separatorpanel/dist/images/page.png";var o=function(e){babelHelpers.inherits(n,e);babelHelpers.createClass(n,null,[{key:"getInstance",value:function e(){var a=i.PageObject.getRootWindow();var t=a.BX.Landing.UI.Panel.SeparatorPanel;if(!t.instance&&!n.instance){t.instance=new n}return t.instance||n.instance}}]);function n(){var e;babelHelpers.classCallCheck(this,n);e=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(n).call(this));babelHelpers.defineProperty(babelHelpers.assertThisInitialized(e),"adjustActionsPanels",false);e.setEventNamespace("BX.Landing.UI.Panel.SeparatorPanel");e.setLayoutClass("landing-ui-panel-separator");e.setOverlayClass("landing-ui-panel-separator-overlay");e.setTitle(t.Loc.getMessage("LANDING_SEPARATOR_PANEL_TITLE"));e.cache=new a.Cache.MemoryCache;e.renderTo(e.getViewContainer());e.appendCard(new BX.Landing.UI.Card.BlockPreviewCard({title:t.Loc.getMessage("LANDING_SEPARATOR_SOLID_LINE"),image:r,code:"hr",onClick:e.onPreviewClick.bind(babelHelpers.assertThisInitialized(e))}));e.appendCard(new BX.Landing.UI.Card.BlockPreviewCard({title:t.Loc.getMessage("LANDING_SEPARATOR_HEADER"),image:s,code:"section",onClick:e.onPreviewClick.bind(babelHelpers.assertThisInitialized(e))}));e.appendCard(new BX.Landing.UI.Card.BlockPreviewCard({title:t.Loc.getMessage("LANDING_SEPARATOR_PAGE"),image:l,code:"page",onClick:e.onPreviewClick.bind(babelHelpers.assertThisInitialized(e))}));babelHelpers.toConsumableArray(e.content.children).forEach(function(e){a.Dom.style(e,"opacity","1")});return e}babelHelpers.createClass(n,[{key:"getViewContainer",value:function e(){return this.cache.remember("viewContainer",function(){var e=i.PageObject.getRootWindow();return e.document.querySelector(".landing-ui-view-container")})}},{key:"show",value:function e(a){var i=this;void babelHelpers.get(babelHelpers.getPrototypeOf(n.prototype),"show",this).call(this,a);return new Promise(function(e){i.promiseResolver=e})}},{key:"onPreviewClick",value:function e(n){void this.hide();if(a.Type.isFunction(this.promiseResolver)){this.promiseResolver({type:n.code,separatorTitle:n.title})}}}]);return n}(n.Content);e.SeparatorPanel=o})(this.BX.Landing.UI.Panel=this.BX.Landing.UI.Panel||{},BX,BX.Landing.UI.Panel,BX.Landing,BX.Landing);
//# sourceMappingURL=separatorpanel.bundle.map.js